<?php

namespace App\Models\Rbac;

use App\Models\BaseModel;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class RoleNode extends BaseModel
{
    use HasFactory;
    //角色权限表
    protected $table="role_node";
    protected $fillable = [
        "role_id",
        "node_id",
        "created_at",
        "updated_at",
    ];
    public function node(){
        return $this->belongsTo(Node::class,'node_id');
    }
}
